import random #导入一个随机数
#定义选手 player
player=int(input("请输入0:剪刀1:石头2:布"))
print(f"player的值是:{player}")
#定义计算机 computer
computer=random.randint(0,2)
print(f"computer的值是:{computer}")
if(player==0 and computer==2)or(player==1 and computer==0)or(player==2 and computer==1):
    print("人赢了")
elif (player==0 and computer==0)or(player==1 and computer==1)or(player==2 and computer==2):
    print("平局")
else:
    print("输了")
    print(f"计算机输出的是{computer}")